//
//  TermsView.swift
//  PicPost
//
//  Created by dream on 2024/1/9.
//

import UIKit
import TYAlertController

class TermsView: PrentView {

    @IBAction func agree(_ sender: UIButton) {
        let view = Bundle.main.loadNibNamed("TermsView", owner: nil)?.first as? TermsView
        guard let alertVc = TYAlertController(alert: view, preferredStyle: .actionSheet) else {return}
        getCurrentVc().present(alertVc, animated: true)
    }
    
    @IBAction func later(_ sender: UIButton) {
        hide()
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
    }

}
